{% extends 'index.html' %}

{% block page-content %}
    <div class="container">
        <h3>学员缴费记录</h3>
        <hr>
        <form class="form-horizontal col-lg-6" role="form" method="post">{% csrf_token %}
            <span style="color: red;">
                {% for error in errors %}
                {{ error }}
                {% endfor %}
            </span>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">客户:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="customer_obj" value="{{ enroll_obj.customer }}"
                           disabled>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">所报课程:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="customer_obj" value="{{ enroll_obj.enrolled_class }}"
                           disabled>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">缴费金额:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="customer_obj" name="amount" value="" placeholder="至少缴纳500">
                </div>
            </div>


            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">课程顾问:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="customer_obj"
                           value="{{ enroll_obj.customer.consultant }}" disabled>
                </div>
            </div>

            {#                {% for field in payment_form %}#}
            {##}
            {#                  <div class="form-group">#}
            {#                    <label for="inputEmail3" class="col-sm-2 control-label">{{ field.label }}:</label>#}
            {#                    <div class="col-sm-9">#}
            {#                        {{ field }}#}
            {#                    </div>#}
            {#                  </div>#}
            {#                {% endfor %}#}
            <input type="submit" class="btn btn-info pull-right" value="提交">
        </form>
        <div class="row form-horizontal col-lg-6">
            <ul>
                {% for k,v in msgs.items %}
                    <li>{{ k }}:{{ v }}</li>
                {% endfor %}
            </ul>
        </div>
    </div>




{% endblock %}